package com.jake.rabbitbootdemo.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"jake.fanout.queue.1", "jake.fanout.queue.2", "jake.fanout.queue.3"})
public class FanoutConsumer {

    @RabbitHandler
    public void process(String msg) {
        System.out.println(msg);
    }

}
